package sjtu.rfid.rri.services.casp.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ProcessError implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1044737076288940265L;

	private List<ItemError> itemErrors = new ArrayList<ItemError>();

	/**
	 * @return the itemErrors
	 */
	public List<ItemError> getItemErrors() {
		return itemErrors;
	}

	/**
	 * @param itemErrors
	 *            the itemErrors to set
	 */
	public void setItemErrors(List<ItemError> itemErrors) {
		this.itemErrors = itemErrors;
	}

	/**
	 * @param itemErrors
	 *            the itemError to add
	 */
	public void addItemErrors(ItemError itemError) {
		this.itemErrors.add(itemError);
	}

	@Override
	public String toString() {
		return "ItemError List = " + itemErrors;
	}
}
